<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
</body>
</html>
<script>
var ull=document.createElement('ul');
var pros=["上东","湖北","浙江"];
var cities=["建安","武汉","汉州"];
	
	for (var i in pros){
		var lli=document.createElement('li');
		var tti=document.createTextNode(pros[i]);
lli.appendChild(tti);
lli.setAttribute('city',cities[i]);
ull.appendChild(lli);
	}
	document.getElementsByTagName('body')[0].appendChild(ull);
</script>
